<template>
  <div id="app" style="">
    <!--<img src="./assets/logo.png">-->
    <router-view/>
  </div>
</template>

<script>

	
export default {
  name: 'App',

  mounted(){
	//获取版本号注释
	
    this.axios.get('static/version.js?t='+new Date().getTime()).then(function(response){
      let version=response.data
      	if(window.localStorage.version==null||window.localStorage.version==undefined){
      		  window.location.href = window.location.href
      		  window.location.reload()
      		  window.localStorage.version=version
      	}else if(window.localStorage.version!=version){
          window.location.href = window.location.href
          window.location.reload()
          window.localStorage.version=version
        }
      }).catch(function(error){
      	console.log(error)
      })
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /*margin-top: 60px;*/
  /*height: 20rem;*/
}
</style>
